{template 'common/header'}
<link rel="stylesheet" href="../addons/kuyuan_red/dist/web/common.css" />
<link rel="stylesheet" href="../addons/kuyuan_red/dist/web/finance.css" />
<div id="louie" data-url="{php echo $this->createWebUrl('api')}">

    <!--S导航-->
    <ul id="navs" class="nav nav-tabs">
        <li v-for="(item,index) in navs" :key="item.value" :class="navs[nav_index].value === item.value ? 'active' : ''"><a href="javascript:;" @click="changeNav(index)"><i :class="item.icon"></i>{{item.name}}</a></li>
    </ul>
    <!--E导航-->

    <!--S列表-->
    <form ref="depositForm" action="" method="post" @submit.prevent="sendAllCash">
        <table id="list" class="table table-hover table-bordered">
            <tr>
                <th v-if="navs[nav_index].value === '0'">选择</th>
                <th>uid</th>
                <th>用户昵称</th>
                <th>金额</th>
                <th>状态</th>
                <th>时间</th>
                <th>操作</th>
            </tr>
            <tr v-for="(item,index) in list" :key="item.id">
                <td v-if="navs[nav_index].value === '0'"><label style="display: block;"><input type="checkbox" name="cash" :value="item.id" /></label></td>
                <td>{{item.uid}}</td>
                <td>{{item.nickname}}</td>
                <td>{{item.money}}</td>
                <td>
                    <button type="button" class="btn btn-info btn-xs" v-if="parseInt(item.status) === 0">待提现</button>
                    <button type="button" class="btn btn-success btn-xs" v-if="parseInt(item.status) === 1">成功</button>
                    <button type="button" class="btn btn-danger btn-xs" v-if="parseInt(item.status) === 2">拒绝</button>
                </td>
                <td>{{item.time}}</td>
                <td>
                    <div class="btn-group btn-group-xs">
                        <button type="button" class="btn btn-success" v-if="parseInt(item.status) === 0" v-bind:disabled="disabled" @click="pass(index)">提现</button>
                        <button type="button" class="btn btn-warning" v-if="parseInt(item.status) === 0" v-bind:disabled="disabled" @click="refuse(index)">拒绝</button>
                        <button type="button" class="btn btn-danger" v-if="parseInt(item.status) !== 0" v-bind:disabled="disabled" @click="del(index)">删除</button>
                    </div>
                </td>
            </tr>
            <tr v-if="list.length > 1 && navs[nav_index].value === '0'">
                <td><label style="display: block;"><input type="checkbox" @click="selectAll" /> 全选</label></td>
                <td colspan="8"><button class="btn btn-success btn-sm" :disabled="disabled">批量提现</button></td>
            </tr>
            <tr class="empty" v-if="total <= 0"><td colspan="8">暂无数据</td></tr>
        </table>
    </form>
    <page v-on:change-page="changePage" v-bind:total="total" v-bind:return-num="returnNum" v-bind:page-num="pageNum"></page>
    <!--E列表-->
    <!--提示框--><v-dialog style="z-index:99999999;"/>
</div>
<script src="../addons/kuyuan_red/dist/web/common.js"></script>
<script src="../addons/kuyuan_red/dist/web/finance.js"></script>
{template 'common/footer'}